<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
<!-- OneTrust Cookies Consent Notice start for xilinx.github.io -->

<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" data-document-language="true" type="text/javascript" charset="UTF-8" data-domain-script="03af8d57-0a04-47a6-8f10-322fa00d8fc7" ></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end for xilinx.github.io -->
<!-- Google Tag Manager -->
<script type="text/plain" class="optanon-category-C0002">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5RHQV7');</script>
<!-- End Google Tag Manager -->
  <title>runner_ext &mdash; Vitis™ AI 3.5 documentation</title>
      <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
      <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
      <link rel="stylesheet" href="../../../_static/_static/custom.css" type="text/css" />
  <!--[if lt IE 9]>
    <script src="../../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/jquery.js"></script>
        <script src="../../../_static/underscore.js"></script>
        <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
        <script src="../../../_static/doctools.js"></script>
    <script src="../../../_static/js/theme.js"></script>
    <link rel="index" title="Index" href="../../../genindex.html" />
    <link rel="search" title="Search" href="../../../search.html" /> 
</head>

<body class="wy-body-for-nav">

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-5RHQV7" height="0" width="0" style="display:none;visibility:hidden" class="optanon-category-C0002"></iframe></noscript>
<!-- End Google Tag Manager --> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
            <a href="../../../index.html" class="icon icon-home"> Vitis™ AI
            <img src="../../../_static/xilinx-header-logo.svg" class="logo" alt="Logo"/>
          </a>
              <div class="version">
                3.5
              </div>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <p class="caption" role="heading"><span class="caption-text">Setup and Install</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/release_notes.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/system_requirements.html">System Requirements</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/install/install.html">Host Install Instructions</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Quick Start Guides</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow-system-integration.html">DPU IP Details and System Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow-model-zoo.html">Vitis™ AI Model Zoo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow-model-development.html">Developing a Model for Vitis AI</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow-model-deployment.html">Deploying a Model with Vitis AI</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Runtime API Documentation</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../classlist.html">C++ API Class</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pythonlist.html">Python APIs</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Additional Information</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/release_documentation.html">Vitis™ AI User Guides &amp; IP Product Guides</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/Xilinx/Vitis-AI-Tutorials">Vitis™ AI Developer Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow-third-party.html">Third-party Inference Stack Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/version_compatibility.html">IP and Tools Compatibility</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/faq.html">Frequently Asked Questions</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/install/branching_tagging_strategy.html">Branching and Tagging Strategy</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Resources and Support</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/additional_resources.html">Technical Support</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../docs/reference/additional_resources.html#id1">Additional Resources</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Related AMD Solutions</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="https://github.com/Xilinx/DPU-PYNQ">DPU-PYNQ</a></li>
<li class="toctree-l1"><a class="reference external" href="https://xilinx.github.io/finn/">FINN &amp; Brevitas</a></li>
<li class="toctree-l1"><a class="reference external" href="https://xilinx.github.io/inference-server/">Inference Server</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/amd/UIF">Unified Inference Frontend</a></li>
<li class="toctree-l1"><a class="reference external" href="https://ryzenai.docs.amd.com/en/latest/">Ryzen™ AI Developer Guide ~July 29</a></li>
<li class="toctree-l1"><a class="reference external" href="https://onnxruntime.ai/docs/execution-providers/community-maintained/Vitis-AI-ExecutionProvider.html">Vitis™ AI ONNX Runtime Execution Provider</a></li>
<li class="toctree-l1"><a class="reference external" href="https://xilinx.github.io/VVAS/">Vitis™ Video Analytics SDK</a></li>
</ul>

        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu"  style="background: black" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../index.html">Vitis™ AI</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../../index.html" class="icon icon-home"></a> &raquo;</li>
      <li>runner_ext</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../../_sources/doxygen/api/file/runner__ext_8hpp.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <section id="runner-ext">
<h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this heading">¶</a></h1>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p>
<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv415get_input_scaleNSt6vectorIPKN3xir6TensorEEE">
<span id="_CPPv315get_input_scaleNSt6vectorIPKN3xir6TensorEEE"></span><span id="_CPPv215get_input_scaleNSt6vectorIPKN3xir6TensorEEE"></span><span id="get_input_scale__std::vector:xir::TensorCP:"></span><span class="target" id="runner__ext_8hpp_1aa2ff67cf35b11a599daa3bbe56eccc61"></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="kt"><span class="pre">float</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_input_scale</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input_tensors</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415get_input_scaleNSt6vectorIPKN3xir6TensorEEE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv416get_output_scaleNSt6vectorIPKN3xir6TensorEEE">
<span id="_CPPv316get_output_scaleNSt6vectorIPKN3xir6TensorEEE"></span><span id="_CPPv216get_output_scaleNSt6vectorIPKN3xir6TensorEEE"></span><span id="get_output_scale__std::vector:xir::TensorCP:"></span><span class="target" id="runner__ext_8hpp_1af74effe5ea0387f488f1736f47aef08e"></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="kt"><span class="pre">float</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_output_scale</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output_tensors</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416get_output_scaleNSt6vectorIPKN3xir6TensorEEE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv415get_input_scalePKN3xir6TensorE">
<span id="_CPPv315get_input_scalePKN3xir6TensorE"></span><span id="_CPPv215get_input_scalePKN3xir6TensorE"></span><span id="get_input_scale__xir::TensorCP"></span><span class="target" id="runner__ext_8hpp_1aee651886d01ebf5100dbfa007a77cab2"></span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_input_scale</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">input_tensor</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415get_input_scalePKN3xir6TensorE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv416get_output_scalePKN3xir6TensorE">
<span id="_CPPv316get_output_scalePKN3xir6TensorE"></span><span id="_CPPv216get_output_scalePKN3xir6TensorE"></span><span id="get_output_scale__xir::TensorCP"></span><span class="target" id="runner__ext_8hpp_1a0b14c48cfb263e47cd0652bb2eb9e6a8"></span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_output_scale</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">output_tensor</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416get_output_scalePKN3xir6TensorE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

</div>
<dl class="cpp type">
<dt class="sig sig-object cpp" id="_CPPv44vart">
<span id="_CPPv34vart"></span><span id="_CPPv24vart"></span><span id="vart"></span><span class="target" id="namespacevart"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">vart</span></span></span><br /></dt>
<dd><div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p>
<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart15get_input_scaleENSt6vectorIPKN3xir6TensorEEE">
<span id="_CPPv3N4vart15get_input_scaleENSt6vectorIPKN3xir6TensorEEE"></span><span id="_CPPv2N4vart15get_input_scaleENSt6vectorIPKN3xir6TensorEEE"></span><span id="vart::get_input_scale__std::vector:xir::TensorCP:"></span><span class="target" id="runner__ext_8hpp_1aa2ff67cf35b11a599daa3bbe56eccc61"></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="kt"><span class="pre">float</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_input_scale</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input_tensors</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart15get_input_scaleENSt6vectorIPKN3xir6TensorEEE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart16get_output_scaleENSt6vectorIPKN3xir6TensorEEE">
<span id="_CPPv3N4vart16get_output_scaleENSt6vectorIPKN3xir6TensorEEE"></span><span id="_CPPv2N4vart16get_output_scaleENSt6vectorIPKN3xir6TensorEEE"></span><span id="vart::get_output_scale__std::vector:xir::TensorCP:"></span><span class="target" id="runner__ext_8hpp_1af74effe5ea0387f488f1736f47aef08e"></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="kt"><span class="pre">float</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_output_scale</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output_tensors</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart16get_output_scaleENSt6vectorIPKN3xir6TensorEEE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart15get_input_scaleEPKN3xir6TensorE">
<span id="_CPPv3N4vart15get_input_scaleEPKN3xir6TensorE"></span><span id="_CPPv2N4vart15get_input_scaleEPKN3xir6TensorE"></span><span id="vart::get_input_scale__xir::TensorCP"></span><span class="target" id="runner__ext_8hpp_1aee651886d01ebf5100dbfa007a77cab2"></span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_input_scale</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">input_tensor</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart15get_input_scaleEPKN3xir6TensorE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart16get_output_scaleEPKN3xir6TensorE">
<span id="_CPPv3N4vart16get_output_scaleEPKN3xir6TensorE"></span><span id="_CPPv2N4vart16get_output_scaleEPKN3xir6TensorE"></span><span id="vart::get_output_scale__xir::TensorCP"></span><span class="target" id="runner__ext_8hpp_1a0b14c48cfb263e47cd0652bb2eb9e6a8"></span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_output_scale</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">output_tensor</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart16get_output_scaleEPKN3xir6TensorE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

</div>
<dl class="cpp class">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExtE">
<span id="_CPPv3N4vart9RunnerExtE"></span><span id="_CPPv2N4vart9RunnerExtE"></span><span id="vart::RunnerExt"></span><span class="target" id="classvart_1_1_runner_ext"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">RunnerExt</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><br /></dt>
<dd><div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric" id="breathe-section-title-public-functions">Public Functions</p>
<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExt9RunnerExtEv">
<span id="_CPPv3N4vart9RunnerExt9RunnerExtEv"></span><span id="_CPPv2N4vart9RunnerExt9RunnerExtEv"></span><span id="vart::RunnerExt::RunnerExt"></span><span class="target" id="classvart_1_1_runner_ext_1ad2ade6b989c5f8fe14d22cd271548522"></span><span class="k"><span class="pre">explicit</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">RunnerExt</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="k"><span class="pre">default</span></span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt9RunnerExtEv" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExt9RunnerExtERK9RunnerExt">
<span id="_CPPv3N4vart9RunnerExt9RunnerExtERK9RunnerExt"></span><span id="_CPPv2N4vart9RunnerExt9RunnerExtERK9RunnerExt"></span><span id="vart::RunnerExt::RunnerExt__RunnerExtCR"></span><span class="target" id="classvart_1_1_runner_ext_1a20bc9df28182b2fd5763b36ecc626c38"></span><span class="sig-name descname"><span class="n"><span class="pre">RunnerExt</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="#_CPPv4N4vart9RunnerExt9RunnerExtERK9RunnerExt" title="vart::RunnerExt::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">&amp;</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="k"><span class="pre">delete</span></span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt9RunnerExtERK9RunnerExt" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExtaSERK9RunnerExt">
<span id="_CPPv3N4vart9RunnerExtaSERK9RunnerExt"></span><span id="_CPPv2N4vart9RunnerExtaSERK9RunnerExt"></span><span id="vart::RunnerExt::assign-operator__RunnerExtCR"></span><span class="target" id="classvart_1_1_runner_ext_1ab5521c15a09dd0acc9eedcbbc3b3b6ed"></span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="sig-name descname"><span class="k"><span class="pre">operator</span></span><span class="o"><span class="pre">=</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">other</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="k"><span class="pre">delete</span></span><a class="headerlink" href="#_CPPv4N4vart9RunnerExtaSERK9RunnerExt" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExtD0Ev">
<span id="_CPPv3N4vart9RunnerExtD0Ev"></span><span id="_CPPv2N4vart9RunnerExtD0Ev"></span><span id="vart::RunnerExt::~RunnerExt"></span><span class="target" id="classvart_1_1_runner_ext_1aee8650372d2ba8b1fe7940aed06d4b0c"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">~RunnerExt</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="k"><span class="pre">default</span></span><a class="headerlink" href="#_CPPv4N4vart9RunnerExtD0Ev" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExt10get_inputsEv">
<span id="_CPPv3N4vart9RunnerExt10get_inputsEv"></span><span id="_CPPv2N4vart9RunnerExt10get_inputsEv"></span><span id="vart::RunnerExt::get_inputs"></span><span class="target" id="classvart_1_1_runner_ext_1a478b6c63337f3752d362524b30a7b134"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><a class="reference internal" href="runner_8hpp.html#_CPPv44vart" title="vart"><span class="n"><span class="pre">vart</span></span></a><span class="p"><span class="pre">::</span></span><a class="reference internal" href="../class/classvart_1_1_tensor_buffer.html#_CPPv4N4vart12TensorBufferE" title="vart::TensorBuffer"><span class="n"><span class="pre">TensorBuffer</span></span></a><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_inputs</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt>
<dd><p>Gets all input TensorBuffers of RunnerExt. </p>
<p>
Sample code:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="n">runner</span> <span class="o">=</span> <span class="n">vart</span><span class="p">::</span><span class="n">RunnerExt</span><span class="p">::</span><span class="n">create_runner</span><span class="p">(</span><span class="n">subgraph</span><span class="p">,</span> <span class="n">attrs</span><span class="p">);</span>
<span class="n">auto</span> <span class="n">input_tensor_buffers</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-&gt;</span><span class="n">get_inputs</span><span class="p">();</span>
    <span class="k">for</span> <span class="p">(</span><span class="n">auto</span> <span class="nb">input</span> <span class="p">:</span> <span class="n">input_tensor_buffers</span><span class="p">)</span> <span class="p">{</span>
        <span class="n">auto</span> <span class="n">shape</span> <span class="o">=</span> <span class="nb">input</span><span class="o">-&gt;</span><span class="n">get_tensor</span><span class="p">()</span><span class="o">-&gt;</span><span class="n">get_shape</span><span class="p">();</span>
<span class="p">}</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p>
</dd>
</dl>
</dd></dl>

<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExt11get_outputsEv">
<span id="_CPPv3N4vart9RunnerExt11get_outputsEv"></span><span id="_CPPv2N4vart9RunnerExt11get_outputsEv"></span><span id="vart::RunnerExt::get_outputs"></span><span class="target" id="classvart_1_1_runner_ext_1af4cf84463ef9feb0d02c6b7e5bed25ab"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre">&lt;</span></span><a class="reference internal" href="runner_8hpp.html#_CPPv44vart" title="vart"><span class="n"><span class="pre">vart</span></span></a><span class="p"><span class="pre">::</span></span><a class="reference internal" href="../class/classvart_1_1_tensor_buffer.html#_CPPv4N4vart12TensorBufferE" title="vart::TensorBuffer"><span class="n"><span class="pre">TensorBuffer</span></span></a><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">get_outputs</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt>
<dd><p>Gets all output TensorBuffers of RunnerExt. </p>
<p>
Sample code:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="n">runner</span> <span class="o">=</span> <span class="n">vart</span><span class="p">::</span><span class="n">RunnerExt</span><span class="p">::</span><span class="n">create_runner</span><span class="p">(</span><span class="n">subgraph</span><span class="p">,</span> <span class="n">attrs</span><span class="p">);</span>
<span class="n">auto</span> <span class="n">output_tensor_buffers</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-&gt;</span><span class="n">get_outputs</span><span class="p">();</span>
    <span class="k">for</span> <span class="p">(</span><span class="n">auto</span> <span class="n">output</span> <span class="p">:</span> <span class="n">output_tensor_buffers</span><span class="p">)</span> <span class="p">{</span>
        <span class="n">auto</span> <span class="n">shape</span> <span class="o">=</span> <span class="n">output</span><span class="o">-&gt;</span><span class="n">get_tensor</span><span class="p">()</span><span class="o">-&gt;</span><span class="n">get_shape</span><span class="p">();</span>
<span class="p">}</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p>
</dd>
</dl>
</dd></dl>

</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric" id="breathe-section-title-public-static-functions">Public Static Functions</p>
<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE">
<span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre">&lt;</span></span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">&gt;</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt>
<dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>subgraph</strong> – XIR Subgraph </p></li>
<li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>An instance of runner. </p>
</dd>
</dl>
</dd></dl>

</div>
</dd></dl>

</dd></dl>

</section>


           </div>
          </div>
          
				  
				  <footer>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2022-2023, Advanced Micro Devices, Inc.
      <span class="lastupdated">Last updated on July 19, 2023.
      </span></p>
  </div>



										<div class="aem-Grid aem-Grid--16">
											<div class="aem-GridColumn aem-GridColumn--xxxlarge--none aem-GridColumn--xsmall--16 aem-GridColumn--offset--xsmall--0 aem-GridColumn--xlarge--none aem-GridColumn--xxlarge--none aem-GridColumn--default--none aem-GridColumn--offset--large--1 aem-GridColumn--xlarge--12 aem-GridColumn--offset--default--0 aem-GridColumn--xxlarge--10 aem-GridColumn--offset--xlarge--2 aem-GridColumn--offset--xxlarge--3 aem-GridColumn--offset--xxxlarge--4 aem-GridColumn--xsmall--none aem-GridColumn--large--none aem-GridColumn aem-GridColumn--large--14 aem-GridColumn--xxxlarge--8 aem-GridColumn--default--16">
												<div class="container-fluid sub-footer">

													                    <div class="row">
                        <div class="col-xs-24">
                          <p><a target="_blank" href="https://www.amd.com/en/corporate/copyright">Terms and Conditions</a> | <a target="_blank" href="https://www.amd.com/en/corporate/privacy">Privacy</a> | <a target="_blank" href="https://www.amd.com/en/corporate/cookies">Cookie Policy</a> | <a target="_blank" href="https://www.amd.com/en/corporate/trademarks">Trademarks</a> | <a target="_blank" href="https://www.amd.com/system/files/documents/statement-human-trafficking-forced-labor.pdf">Statement on Forced Labor</a> | <a target="_blank" href="https://www.amd.com/en/corporate/competition">Fair and Open Competition</a> | <a target="_blank" href="https://www.amd.com/system/files/documents/amd-uk-tax-strategy.pdf">UK Tax Strategy</a> | <a target="_blank" href="https://docs.xilinx.com/v/u/9x6YvZKuWyhJId7y7RQQKA">Inclusive Terminology</a> | <a href="#cookiessettings" class="ot-sdk-show-settings">Cookies Settings</a></p>
                        </div>
                    </div>
												</div>
											</div>
										</div>
										
</br>


  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>
 <script type="text/javascript">
    $(document).ready(function() {
        $(".toggle > *").hide();
        $(".toggle .header").show();
        $(".toggle .header").click(function() {
            $(this).parent().children().not(".header").toggle(400);
            $(this).parent().children(".header").toggleClass("open");
        })
    });
</script>


</body>
</html>